package com.wanwen.mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.wanwen.dto.AskerDto;
import com.wanwen.entity.Asker;

public interface AskerMapper extends BaseMapper<Asker> {
	 /**
     * 动态查询
     */
    @Select("SELECT asker.*,users.uname " +
            " FROM users, asker " +
            " ${ew.customSqlSegment} ")
    IPage<AskerDto> findAsker(IPage<AskerDto> page, @Param("ew") QueryWrapper<AskerDto> wrapper);
}
